﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPageProgramacion.master" AutoEventWireup="true" CodeFile="wfTurno.aspx.cs" Inherits="Ventas_wfTurno" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" Runat="Server">
    <li><a href="wfMedicoListado.aspx" class="">Médico</a></li>
    <li><a href="wfEmpleadoListado.aspx" class="">Empleado</a></li>
    <li><a href="wfTurnoListado.aspx" class="active">Turno</a></li>
    <li><a href="wfProgramacionListado.aspx" class="">Programación</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" Runat="Server">
    Turno
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" Runat="Server">
    <ul class="tabs primary">
        <li><a href="wfTurnoListado.aspx">Listado de Turnos</a></li>
        <li class="active"><a href="wfTurno.aspx">Registrar Turno</a></li>
    </ul>
    <h4>Registrar Turno</h4>
    <table width="99%">
        <tr>
            <td>
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="99%">
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="btnAceptar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Aceptar" OnClick="ASPxButton1_Click">
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnCancelar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Cancelar" OnClick="ASPxButton2_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </td>
        </tr>
    </table>
    <table>
    <tr><td>
        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Código">
        </dx:ASPxLabel>
        </td><td>
            <dx:ASPxTextBox ID="txtCodigo" runat="server" ClientIDMode="AutoID" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="170px">
                <ValidationSettings>
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td></tr>
    <tr><td>
        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Descripción">
        </dx:ASPxLabel>
        </td><td>
            <dx:ASPxTextBox ID="txtDescripcion" runat="server" ClientIDMode="AutoID" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="340px">
                <ValidationSettings>
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td></tr>
    <tr><td>
        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Hora Inicio">
        </dx:ASPxLabel>
        </td><td>
            <dx:ASPxComboBox ID="cboHorarioInicial" runat="server" ClientIDMode="AutoID" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                DataSourceID="ObjectDataSource1" TextField="HOR_HORARIO" ValueField="HOR_ID">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                </LoadingPanelImage>
                <ValidationSettings>
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                </ValidationSettings>
            </dx:ASPxComboBox>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                SelectMethod="listar" TypeName="Negocio.Clases_BL.clsHorarioBL">
            </asp:ObjectDataSource>
        </td></tr>
    <tr><td>
        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Hora Fin">
        </dx:ASPxLabel>
        </td><td>
            <dx:ASPxComboBox ID="cboHorarioFinal" runat="server" ClientIDMode="AutoID" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                DataSourceID="ObjectDataSource1" TextField="HOR_HORARIO" ValueField="HOR_ID">
                <Items>
                    <dx:ListEditItem Text="13:00" Value="13:00" />
                    <dx:ListEditItem Text="14:00" Value="14:00" />
                    <dx:ListEditItem Text="15:00" Value="15:00" />
                    <dx:ListEditItem Text="16:00" Value="16:00" />
                    <dx:ListEditItem Text="17:00" Value="17:00" />
                </Items>
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                </LoadingPanelImage>
                <ValidationSettings>
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                </ValidationSettings>
            </dx:ASPxComboBox>
        </td></tr>
    </table>


    <dx:ASPxPopupControl ID="pcMensaje" runat="server"
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                Modal="True" PopupHorizontalAlign="WindowCenter" 
                PopupVerticalAlign="WindowCenter" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="420px" 
                AllowDragging="True" AllowResize="True" ClientInstanceName="pcMensaje" 
                DragElement="Window" HeaderText="Mensaje">
                <HeaderImage Url="~/Imagenes/iconError.png">
                </HeaderImage>
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                    PaddingTop="4px" />
                </HeaderStyle>



<ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
<table width="100%">
        <tr>
           <td style="padding:0 0 0 20px;">
                <dx:ASPxLabel ID="lblMensaje" runat="server">
                </dx:ASPxLabel>
                <hr />
            </td>
        </tr>
        <tr>        
             <td align="center">
                <dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" 
                    ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                    CssPostfix="PlasticBlue" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Text="Aceptar" 
                    Checked="True">
                    <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();   
}" />
                    <CheckedStyle BackColor="#000066" Font-Bold="True" Font-Names="Georgia" 
                        ForeColor="White" Font-Italic="False" Font-Strikeout="False">
                    </CheckedStyle>
                    <HoverStyle BackColor="#000099" Font-Bold="True" Font-Names="Georgia" 
                        ForeColor="White">
                    </HoverStyle>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>


</dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>


</asp:Content>

